import axios from "../utils/http"

//轮播图
export function getSlideShow() {
    return axios.get(`/api/weChat/applet/course/banner/list?number=5`)

}
//底部
export function getFooter() {
    let footerObj = new URLSearchParams()
    footerObj.append("dictType", 'blogroll')
    return axios.post(`/api/system/dict/data/list/open`,footerObj)

}
//课程
export function getCourse(type,size) {
    let courseObj = new URLSearchParams()
    courseObj.append("type",type)
    courseObj.append("pageNum","1")
    courseObj.append("pageSize",size)
    return axios.post(`api/weChat/applet/course/list/type`,courseObj)

}
//下拉菜单
export function getDropDownList() {
    return axios.post(`/api/weChat/applet/subject/list`,{"enable":'1'})
}

